#pragma once
#include"RBTree.h"
namespace shuaiming
{
	template<class K>
	class set
	{
		struct SetKeyOfT
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};
	public:
		typedef typename shuaiming::RBTree<K, const K, SetKeyOfT>::Iterator iterator;
		typedef typename shuaiming::RBTree<K, const K, SetKeyOfT>::Const_Iterator const_iterator;
		iterator begin() { return rbt.Begin(); }
		iterator end() { return rbt.End(); }
		const_iterator begin() const { return rbt.Begin(); }
		const_iterator end() const { return rbt.End(); }
		pair<iterator, bool> insert(const K& key) { return rbt.Insert(key); }
	private:
		RBTree<K, const K, SetKeyOfT> rbt;
	};
}
